package com.talkweb.platform.commonapi.entity.db;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


import com.talkweb.platform.commonapi.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Entity
@Table(name = "bpm_orgdeptlist") // 设置数据库中表名字
@ApiModel(value = "Department", description = "部门信息表")
public class Department extends BaseEntity{
	
	@Id
	@Column(name = "WF_OrUnid")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT REPLACE(UUID(),'-','')")
	private String orUnid;
	
	
	@Column(name = "OrgClass")
	@ApiModelProperty(value = "组织类型", required = false)
	private String orgClass;
	
	@Column(name = "FolderName")
	@ApiModelProperty(value = "部门名称", required = true)
	private String folderName;
	
	@Column(name = "ParentFolderid")
	@ApiModelProperty(value = "上级部门层级编号", required = false)
	private String parentFolderId;
	
	@Column(name = "Folderid")
	@ApiModelProperty(value = "部门层级编号", required = false)
	private String folderId;
	
	@Column(name = "TopFolderid")
	@ApiModelProperty(value = "顶级部门层级编号", required = false)
	private String topFolderId;
	
	@Column(name = "Deptid")
	@ApiModelProperty(value = "部门唯一编号", required = true)
	private String deptId;
	
	@Column(name = "deptFlag")
	@ApiModelProperty(value = "部门类型", required = true)
	private String deptFlag;
	
	@Column(name = "Roles")
	@ApiModelProperty(value = "有权管理本部门的角色", required = false)
	private String roles;
	
	@Column(name = "SortNumber")
	@ApiModelProperty(value = "排序号", required = true)
	private String sortNumber;
	
	@Column(name = "WF_Version")
	@ApiModelProperty(value = "版本", required = false)
	private String version;
	
	@Column(name = "WF_LastModified")
	@ApiModelProperty(value = "最后更新时间", required = false)
	private String lastModified;
	
	@Column(name = "IsValid")
	@ApiModelProperty(value = "是否有效", required = false)
	private String isValid;
	
	@Column(name = "IsShow")
	@ApiModelProperty(value = "是否显示", required = false)
	private String isShow;
	
	@Column(name = "DEPTCN")
	@ApiModelProperty(value = "部门中文简称", required = false)
	private String deptCn;
	
	@Column(name = "DEPTEN")
	@ApiModelProperty(value = "部门英文简称", required = false)
	private String deptEn;
	
	
	@Column(name = "DEPTCODEEN")
	@ApiModelProperty(value = "部门英文编号", required = false)
	private String deptCodeEn;
	
	
	@Column(name = "PARENTDEPTID")
	@ApiModelProperty(value = "上级部门唯一编号", required = true)
	private String parentDeptId;
	
	
	@Column(name = "TOPDEPTID")
	@ApiModelProperty(value = "顶级部门唯一编号", required = true)
	private String topDeptId;
	
	
	@Column(name = "ISSEND")
	@ApiModelProperty(value = "是否主抄送", required = false)
	private String isSend;
	
	
	@Column(name = "ISCOUNTERSIGN")
	@ApiModelProperty(value = "是否允许会签，默认1，允许会签", required = false)
	private String isCounterSign;
	
	@Column(name = "DEPTCODECN")
	@ApiModelProperty(value = "部门中文编号", required = false)
	private String deptCodeCn;
	
	@Column(name = "ORGFULLNAME")
	@ApiModelProperty(value = "组织全称", required = false)
	private String orgFullName;
	
	@Column(name = "XmlData")
	@ApiModelProperty(value = "大字段", required = false)
	private String xmlData;
}
